package com.rent.search.config;

import com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j;
import com.rent.common.config.BaseSwaggerConfig;
import com.rent.common.pojo.SwaggerProperties;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @Author zhang
 * @create 2022/3/28 10:51
 */
@Configuration
@EnableSwagger2
@EnableKnife4j
public class SwaggerConfig extends BaseSwaggerConfig {

    @Override
    public SwaggerProperties swaggerProperties() {
        return SwaggerProperties.builder()
                .apiBasePackage("com.rent.search.controller")
                .title("后台系统 搜索模块接口")
                .description("搜索相关接口文档")
                .contactName("zn")
                .version("1.0")
                .enableSecurity(true)
                .build();
    }


}
